using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class ThamSoBUS
    {
        public ThamSoDTO[] LayDanhSachTS()
        {
            ThamSoDAO tsDAO = new ThamSoDAO();
            ThamSoDTO[] TS = new ThamSoDTO[100];
            TS = tsDAO.LayDanhSachTS();
            return TS;
        }
        public void ThemThamSo(string TenTS, string GiaTri)
        {
            ThamSoDAO tsDAO = new ThamSoDAO();
            tsDAO.ThemThamSo(TenTS,GiaTri);
        }
        public void CapNhatThamSo(ThamSoDTO kh)
        {
            ThamSoDAO tsDAO = new ThamSoDAO();
            tsDAO.CapNhatThamSo(kh);
        }
    }
}
